<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>aiengine: xaietile_perfcnt.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">aiengine
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xaietile__perfcnt_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">xaietile_perfcnt.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains routines for Performance Counter configuration. </p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who     Date     Changes
</p>
<hr/>
<p>
1.0   Hyun    10/02/2018  Initial creation
1.1   Hyun    10/10/2018  Use the mask write API
1.2   Nishad  12/05/2018  Renamed ME attributes to AIE
1.3   Tejus   10/14/2019  Remove unwanted assertions
1.4   Dishita 11/01/2019  Fix coverity warnings
</pre> </div><table class="memberdecls">
<tr class="memitem:a2799955fd9e9e214e53c0d0434563415"><td class="memItemLeft" align="right" valign="top">u8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#a2799955fd9e9e214e53c0d0434563415">XAieTileMem_PerfCounterControl</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u16 StartEvent, u16 StopEvent, u16 ResetEvent)</td></tr>
<tr class="memdesc:a2799955fd9e9e214e53c0d0434563415"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the performance counter control for Memory module.  <a href="#a2799955fd9e9e214e53c0d0434563415">More...</a><br/></td></tr>
<tr class="separator:a2799955fd9e9e214e53c0d0434563415"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6307a00cd1ebf517e8d850ad50cd4b6c"><td class="memItemLeft" align="right" valign="top">u8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#a6307a00cd1ebf517e8d850ad50cd4b6c">XAieTilePl_PerfCounterControl</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u16 StartEvent, u16 StopEvent, u16 ResetEvent)</td></tr>
<tr class="memdesc:a6307a00cd1ebf517e8d850ad50cd4b6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the performance counter control for PL module.  <a href="#a6307a00cd1ebf517e8d850ad50cd4b6c">More...</a><br/></td></tr>
<tr class="separator:a6307a00cd1ebf517e8d850ad50cd4b6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf7973d11dbcdea6987fa867e2adf2af"><td class="memItemLeft" align="right" valign="top">u8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#aaf7973d11dbcdea6987fa867e2adf2af">XAieTileCore_PerfCounterControl</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u16 StartEvent, u16 StopEvent, u16 ResetEvent)</td></tr>
<tr class="memdesc:aaf7973d11dbcdea6987fa867e2adf2af"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the performance counter control for Core module.  <a href="#aaf7973d11dbcdea6987fa867e2adf2af">More...</a><br/></td></tr>
<tr class="separator:aaf7973d11dbcdea6987fa867e2adf2af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a2c76d6196adc5ea4129d5b0e739281"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#a6a2c76d6196adc5ea4129d5b0e739281">XAieTileMem_PerfCounterGet</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter)</td></tr>
<tr class="memdesc:a6a2c76d6196adc5ea4129d5b0e739281"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API gets the current performance counter value of Memory module.  <a href="#a6a2c76d6196adc5ea4129d5b0e739281">More...</a><br/></td></tr>
<tr class="separator:a6a2c76d6196adc5ea4129d5b0e739281"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a991386fc1e799dd2a8eead79347a4994"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#a991386fc1e799dd2a8eead79347a4994">XAieTilePl_PerfCounterGet</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter)</td></tr>
<tr class="memdesc:a991386fc1e799dd2a8eead79347a4994"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API gets the current performance counter value of PL module.  <a href="#a991386fc1e799dd2a8eead79347a4994">More...</a><br/></td></tr>
<tr class="separator:a991386fc1e799dd2a8eead79347a4994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1091900898c590543620c9e66782be4d"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#a1091900898c590543620c9e66782be4d">XAieTileCore_PerfCounterGet</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter)</td></tr>
<tr class="memdesc:a1091900898c590543620c9e66782be4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API gets the current performance counter value of Core module.  <a href="#a1091900898c590543620c9e66782be4d">More...</a><br/></td></tr>
<tr class="separator:a1091900898c590543620c9e66782be4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1fbff5cb92fb00598ea109727bfe201"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#ac1fbff5cb92fb00598ea109727bfe201">XAieTileMem_PerfCounterSet</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u32 CounterVal)</td></tr>
<tr class="memdesc:ac1fbff5cb92fb00598ea109727bfe201"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the current performance counter value of Memory module.  <a href="#ac1fbff5cb92fb00598ea109727bfe201">More...</a><br/></td></tr>
<tr class="separator:ac1fbff5cb92fb00598ea109727bfe201"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a346cb53d6b5445935f104c77ba8162c2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#a346cb53d6b5445935f104c77ba8162c2">XAieTilePl_PerfCounterSet</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u32 CounterVal)</td></tr>
<tr class="memdesc:a346cb53d6b5445935f104c77ba8162c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the current performance counter value of PL module.  <a href="#a346cb53d6b5445935f104c77ba8162c2">More...</a><br/></td></tr>
<tr class="separator:a346cb53d6b5445935f104c77ba8162c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ba0abfdf2143afc90ab8db0908738b9"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#a6ba0abfdf2143afc90ab8db0908738b9">XAieTileCore_PerfCounterSet</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u32 CounterVal)</td></tr>
<tr class="memdesc:a6ba0abfdf2143afc90ab8db0908738b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the current performance counter value of Core module.  <a href="#a6ba0abfdf2143afc90ab8db0908738b9">More...</a><br/></td></tr>
<tr class="separator:a6ba0abfdf2143afc90ab8db0908738b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7a42596d503a4c7db76cd7290b9e424"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#ae7a42596d503a4c7db76cd7290b9e424">XAieTileMem_PerfCounterEventValue</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u32 EventVal)</td></tr>
<tr class="memdesc:ae7a42596d503a4c7db76cd7290b9e424"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the current performance counter event value of Memory module.  <a href="#ae7a42596d503a4c7db76cd7290b9e424">More...</a><br/></td></tr>
<tr class="separator:ae7a42596d503a4c7db76cd7290b9e424"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac766409bcd335f8ef2a46d724dd932b0"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#ac766409bcd335f8ef2a46d724dd932b0">XAieTilePl_PerfCounterEventValue</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u32 EventVal)</td></tr>
<tr class="memdesc:ac766409bcd335f8ef2a46d724dd932b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the current performance counter event value of PL module.  <a href="#ac766409bcd335f8ef2a46d724dd932b0">More...</a><br/></td></tr>
<tr class="separator:ac766409bcd335f8ef2a46d724dd932b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67b639be12989891af32e2a1c9bf2b57"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xaietile__perfcnt_8c.html#a67b639be12989891af32e2a1c9bf2b57">XAieTileCore_PerfCounterEventValue</a> (<a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *TileInstPtr, u8 Counter, u32 EventVal)</td></tr>
<tr class="memdesc:a67b639be12989891af32e2a1c9bf2b57"><td class="mdescLeft">&#160;</td><td class="mdescRight">This API sets the current performance counter event value of Core module.  <a href="#a67b639be12989891af32e2a1c9bf2b57">More...</a><br/></td></tr>
<tr class="separator:a67b639be12989891af32e2a1c9bf2b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="aaf7973d11dbcdea6987fa867e2adf2af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u8 XAieTileCore_PerfCounterControl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>StartEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>StopEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>ResetEvent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the performance counter control for Core module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 3. </td></tr>
    <tr><td class="paramname">StartEvent</td><td>- Event ID to start </td></tr>
    <tr><td class="paramname">StopEvent</td><td>- Event ID to stop </td></tr>
    <tr><td class="paramname">ResetEvent</td><td>- Event ID to reset</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="a67b639be12989891af32e2a1c9bf2b57"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTileCore_PerfCounterEventValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>EventVal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the current performance counter event value of Core module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 4. </td></tr>
    <tr><td class="paramname">EventVal</td><td>- Event value to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter_event.html#a5d2bfdfe737cdbf97277a6ca57be4633">XAieGbl_RegPerfCounterEvent::RegOff</a>, <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="a1091900898c590543620c9e66782be4d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTileCore_PerfCounterGet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API gets the current performance counter value of Core module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 3.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current counter value</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter.html#a5c916f284dd490b662f6b6900793e883">XAieGbl_RegPerfCounter::RegOff</a>, <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="a6ba0abfdf2143afc90ab8db0908738b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTileCore_PerfCounterSet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>CounterVal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the current performance counter value of Core module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 4. </td></tr>
    <tr><td class="paramname">CounterVal</td><td>- Counter value to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter.html#a5c916f284dd490b662f6b6900793e883">XAieGbl_RegPerfCounter::RegOff</a>, <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="a2799955fd9e9e214e53c0d0434563415"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u8 XAieTileMem_PerfCounterControl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>StartEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>StopEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>ResetEvent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the performance counter control for Memory module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 or 1. </td></tr>
    <tr><td class="paramname">StartEvent</td><td>- Event ID to start </td></tr>
    <tr><td class="paramname">StopEvent</td><td>- Event ID to stop </td></tr>
    <tr><td class="paramname">ResetEvent</td><td>- Event ID to reset</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="ae7a42596d503a4c7db76cd7290b9e424"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTileMem_PerfCounterEventValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>EventVal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the current performance counter event value of Memory module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 2. </td></tr>
    <tr><td class="paramname">EventVal</td><td>- Event value to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter_event.html#a5d2bfdfe737cdbf97277a6ca57be4633">XAieGbl_RegPerfCounterEvent::RegOff</a>, <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="a6a2c76d6196adc5ea4129d5b0e739281"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTileMem_PerfCounterGet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API gets the current performance counter value of Memory module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 2.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current counter value</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter.html#a5c916f284dd490b662f6b6900793e883">XAieGbl_RegPerfCounter::RegOff</a>, <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="ac1fbff5cb92fb00598ea109727bfe201"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTileMem_PerfCounterSet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>CounterVal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the current performance counter value of Memory module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 3. </td></tr>
    <tr><td class="paramname">CounterVal</td><td>- Counter value to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter.html#a5c916f284dd490b662f6b6900793e883">XAieGbl_RegPerfCounter::RegOff</a>, <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="a6307a00cd1ebf517e8d850ad50cd4b6c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u8 XAieTilePl_PerfCounterControl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>StartEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>StopEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>ResetEvent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the performance counter control for PL module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 or 1. </td></tr>
    <tr><td class="paramname">StartEvent</td><td>- Event ID to start </td></tr>
    <tr><td class="paramname">StopEvent</td><td>- Event ID to stop </td></tr>
    <tr><td class="paramname">ResetEvent</td><td>- Event ID to reset</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="ac766409bcd335f8ef2a46d724dd932b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTilePl_PerfCounterEventValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>EventVal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the current performance counter event value of PL module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 2. </td></tr>
    <tr><td class="paramname">EventVal</td><td>- Event value to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter_event.html#a5d2bfdfe737cdbf97277a6ca57be4633">XAieGbl_RegPerfCounterEvent::RegOff</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>.</p>

</div>
</div>
<a class="anchor" id="a991386fc1e799dd2a8eead79347a4994"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTilePl_PerfCounterGet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API gets the current performance counter value of PL module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 2.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current counter value</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter.html#a5c916f284dd490b662f6b6900793e883">XAieGbl_RegPerfCounter::RegOff</a>, <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
<a class="anchor" id="a346cb53d6b5445935f104c77ba8162c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XAieTilePl_PerfCounterSet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> *&#160;</td>
          <td class="paramname"><em>TileInstPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Counter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>CounterVal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This API sets the current performance counter value of PL module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">TileInstPtr</td><td>- Pointer to the Tile instance. </td></tr>
    <tr><td class="paramname">Counter</td><td>- Counter ID. 0 to 2. </td></tr>
    <tr><td class="paramname">CounterVal</td><td>- Counter value to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_gbl___reg_perf_counter.html#a5c916f284dd490b662f6b6900793e883">XAieGbl_RegPerfCounter::RegOff</a>, <a class="el" href="struct_x_aie_gbl___tile.html#a7c04a73941e64980a264a9d529fbb571">XAieGbl_Tile::TileAddr</a>, and <a class="el" href="struct_x_aie_gbl___tile.html#aadd948557d2723faa0cf47419e7d8a6e">XAieGbl_Tile::TileType</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
